
import { Tools } from 'weaver-mobile';


//加载批示语
export const loadPhrasesDatas = (params = {}) => {
    params.ismobile = 1;
    return Tools.callApi({
        url: '/api/workflow/reqform/getPhrases',
        method: 'POST',
        params,
    });
}


//加载流程短语
export const loadCountInfo = (params = {}) => {
    params.ismobile = 1;
    return Tools.callApi({
        url: '/api/workflow/reqlist/doingCountInfo',
        method: 'POST',
        params,
    });
}



//加载所有可督办流程的数量
export const getTreeCount = (params = {}) => {
    params.ismobile = 1;
    return Tools.callApi({
        url: '/api/workflow/supervise/getTreeCount',
        method: 'POST',
        params,
    });
}
//督办
export const doSupervise = (params = {}) => {
    params.ismobile = 1;
    let requestids = params.requestids;
    requestids = requestids.replace(/\+/g, '_');
    params.requestids = requestids;
    return Tools.callApi({
        url: '/api/workflow/supervise/doSupervise',
        method: 'POST',
        params,
    });
}






